@import url(./reset.scss);

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    color: #313033;
}

/* fade-transform */
/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
    transition: all .5s;
}

.fade-transform-enter {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-transform-leave-to {
    opacity: 0;
    transform: translateX(30px);
}

/* flex布局 */
@each $direction in column, row {
    .flex-#{$direction} {
        display: flex;
        flex-wrap: wrap; // flex布局自动换行
        flex-direction: #{$direction};
    }
}

/* flex布局 -- 对齐方式 */
@each $justifycontent in center, space-between, flex-start, flex-end {
    .jc-#{$justifycontent} {
        justify-content: #{$justifycontent};
    }
}

.aic {
    align-items: center;
}

/* 溢出省略号 */
.text-over {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@each $clamp in 2,
3,
4,
5 {
    .text-over#{$clamp} {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: #{$clamp};
        -webkit-box-orient: vertical;
    }
}

.dm-center {
    text-align: center !important;
}

/* 自定义颜色class */
.custom-white {
    color: white;
}

/* 覆盖element UI  样式 */
.dm-layout { /* 布局页面 */
    max-width: 100vw;
    overflow: hidden;

    .main-box {
        height: calc(100vh - 62px);

        .el-scrollbar__wrap {
            overflow-x: hidden !important;
        }
    }
}

.custom-header {
    width: 100%;
    height: 42px;
    line-height: 42px;
    overflow: hidden;
    background-color: #2a877a;
    border-left: 1px solid #FFF !important;

    /* 箭头收缩按钮 */
    .collapsed {
        font-size: 24px;
        margin-top: 8px;
        margin-left: 5px;
        color: white;
        cursor: pointer;
    }

    /* header右边的DIV */
    .custom-header-right {
        height: 42px;
        line-height: 42px;
        float: right;
        padding-right: 15px;
        color: white;
    }
}

// 菜单行高样式设置
.el-menu {
    border-right: none;
}

.el-menu-item.is-active {
    color: #ffffff !important;
    background-color: #2a877a !important;
}

.el-menu-item,
.el-submenu__title {
    height: 42px !important;
    line-height: 42px !important;
}

/* 菜单 */
.dm-menu {
    .dm-scroll {
        height: 100vh;

        .el-scrollbar__wrap {
            overflow-x: hidden !important;
        }
    }

    /*  菜单里面的箭头 */
    .el-submenu__title i.el-icon-arrow-down {
        color: #fff;
    }

    /*隐藏文字*/
    .el-menu--collapse .el-submenu__title span {
        display: none;
    }

    /*隐藏 > */
    .el-menu--collapse .el-submenu__title .el-submenu__icon-arrow {
        display: none;
    }

    .el-aside {
        transition: all 2s;
    }
}

/* 自定义的样式 start  2021-06-15 */
.nine-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 44px;
    clear: both;
    margin-bottom: 10px;
}

/* 自定样式 */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.red {
    color: red;
}

.blue {
    color: #409EFF;
}

.xeixl-bottom {

    margin-bottom: 15px;

}

.custom-pagination {
    text-align: center;
    padding: 32px 0;
}

// 去除input type=number的上下箭头 
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 自定义表头样式 */
.table-header {
    background-color: #F9F9F9 !important;
    color: #333333;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    background-color: #F5F5F5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    background-color: #c8c8c8;
}